//定义layout的admin的view视图路由

import { RouteRecordRaw } from "vue-router";

export default  
     {
        name:"admin",path:'/admin',component:()=>import("@/layouts/admin.vue"),
       redirect:'/admin/home',
       meta: { auth: true, 
        menu: { title: 'Dashboard', icon: 'DashboardOne' } },
        children:[
            {name:'admin.home',
            path:'home',
            component:()=>import("@/views/admin/home.vue"),
            meta: { menu: { title: '工作台' } },
        }
        ]
    } as RouteRecordRaw
